package cate.game.train.inscription.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "英雄装备铭文页 的 请求")
public class InscriptionPageOnReq implements MsgInput {

    @NoteField("英雄唯一id")
    public List<String> heroUids;
    @NoteField("铭文页id")
    public int id;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.inscription.pageOn(cc.getRole(), id, heroUids);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.INSCRIPTION_PAGE_ON_REQ;
    }
}
